package com.dongdongshop.service;

import com.dongdongshop.data.Page;
import com.dongdongshop.data.PageBean;
import com.dongdongshop.pojo.GoodsVO;
import com.dongdongshop.pojo.TbGoods;
import com.dongdongshop.pojo.TbGoodsDesc;
import com.dongdongshop.pojo.TbItem;

public interface GoodsService {


    boolean inserGoodsDesc(TbGoodsDesc tbGoodsDesc);

//    boolean inserGoods(String sellerId, TbGoods tbGoods, TbGoodsDesc tbGoodsDesc);

    void insertGoods(TbGoods tbGoods, TbGoodsDesc tbGoodsDesc, TbItem tbItem);

    Page<GoodsVO> selectGoods(String sellerId, String auditStatus, String goodsName, Integer pageNum, Integer pageSize);

    TbGoods selectByGoodsId(Long goodsId);

    PageBean<GoodsVO> listGoods(String id, String auditStatus, String goodsName, Integer pageNum, Integer pageSize);

    void updateStatusById(Long[] ids, String status);
}
